package com.zpark.merchant.app.convert;

import com.zpark.merchant.api.dto.MerchantDTO;
import com.zpark.merchant.app.vo.MerchantDetailVO;
import com.zpark.merchant.app.vo.MerchantRegisterVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * vo转dto对象
 */
@Mapper
public interface MerchantRegisterConvert {

    // 定义实例
    MerchantRegisterConvert INSTANCE = Mappers.getMapper(MerchantRegisterConvert.class);

    // 将vo转dto
    MerchantDTO merVoToMerDto(MerchantRegisterVO vo);

    // 将dto转vo
    MerchantRegisterVO merDtoToMerVo(MerchantDTO dto);

    // 将MerchantDetailVO转dto
    MerchantDTO merDetVoToMerDto(MerchantDetailVO vo);

    // 将dto转MerchantDetailVO
    MerchantDetailVO merDtoTomerDetVo(MerchantDTO dto);
}
